package com.yunhe.biz;

import java.util.List;

import com.yunhe.dao.ISupplier;
import com.yunhe.dao.SupplierImpl;
import com.yunhe.entity.Supplier;

public class SupplierBizImpl implements ISupplierBiz {

	ISupplier is = new SupplierImpl();
	@Override
	public boolean addSupplier(Supplier supplier) {
		int count = is.addSupplier(supplier);
		if(count>0){
			return true;
		}else{
			return false;
		}
	}

	@Override
	public List<Supplier> getAllSupplier() {
		List<Supplier> list = is.getAllSupplier();
		return list;
	}

	@Override
	public boolean delSupplier(Supplier supplier) {
		int count = is.delSupplier(supplier);
		if(count>0){
			return true;
		}else{
			return false;
		}
	}

}
